<style type="text/css">
    .pageFormContent .adRight label {
        width: 100%;
        height: 26px;
        line-height: 26px;
    }
</style>
<div class="pageContent">
    <form method="post" action="{:url('Ad/doModify')}" class="pageForm" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <div layoutH="58">
            <div class="pageFormContent">
                <div class="unit">
                    <label>广告名称：</label>
                    <input type="text" name="ad_name" maxlength="200" class="required" value="{$ad_name}" />
                </div>
                <div class="unit">
                    <label>图片：</label>
                    {:widget('Upload/image', ['ad_code', $ad_code])}
                </div>
                <div class="unit">
                    <label>添加人：</label>
                    {$sessionname}
                </div>
                <div class="unit">
                    <label>是否显示：</label>
                    {eq name = "enabled" value="0"}
                    <input  class="ad_link_button" type="radio" name="enabled" value="0" checked/>否
                    <input  class="ad_link_button" type="radio" name="enabled" value="1" >是
                    {else/}
                    <input  class="ad_link_button" type="radio" name="enabled" value="0" />否
                    <input  class="ad_link_button" type="radio" name="enabled" value="1" checked>是
                    {/eq}
                </div>
                <div class="unit">
                    <label>排序：</label>
                    <input type="text" name="orderby" size="3" maxlength="3" class="digits" value="{$orderby}" />
                </div>
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
        <input type="hidden" name="ad_id" value="{$ad_id}"/>
    </form>
</div>